﻿using System;
using System.Collections.Generic;

namespace SQLPXBase
{
    internal static class InheritanceHierarchy
    {
        internal static IEnumerable<Type> GetInheritancHierarchy (this Type type)
        {
            for (Type current = type; current != null; current = current.BaseType)
                yield return current;
        }
    }
}
